﻿@using si.caha.Repository;

@{
    Layout = "/tpl/_layout.cshtml";
    DataContext dataContext = new DataContext();

    var userRepository = new UserRepository(dataContext);
    var grid = new WebGrid(userRepository.GetAll(), ajaxUpdateContainerId: "grid");
}
<div id="grid">
    @grid.GetHtml(
        tableStyle: "grid",
        headerStyle: "gridhead",
        alternatingRowStyle: "altRow",
        columns: grid.Columns(
            grid.Column("UserId"),
            grid.Column("Email")
        )
    )
</div>